//- 设置html标签font-size
    (function(doc, win) {
        var _root = doc.documentElement,
            resizeEvent = 'orientationchange' in window ? 'orientationchange' : 'resize',
            resizeCallback = function() {
                var clientWidth = _root.clientWidth,
                    p = 0.5,
                    fontSize = 100;
                if (!clientWidth) return;
                if (clientWidth / 750 < 0.5) {
                    p = 0.5;
                } else if(clientWidth / 750 > 0.75) {
                    p = 0.75;
                } else {
                    p = clientWidth / 750 ;
                }
                _root.style.fontSize = fontSize * p + 'px';
            };
        if (!doc.addEventListener) return;
        win.addEventListener(resizeEvent, resizeCallback, false);
        doc.addEventListener('DOMContentLoaded', resizeCallback, false);
    })(document, window);
    //字体大小的自适应，加上class=autosize即可
    // $(function() {
    //     function e() {
    //         var e = document.documentElement.clientWidth;
    //         var font_size = e * .04 + "px";
    //         var font_size_small = e * .03 + "px";
    //         var font_size_big = e * .05 + "px";
    //         //var padding = e * .01 ;
    //         //if(padding>10){padding = 10}
    //         $('.autosize').css('font-size', font_size);
    //         $('.autosize2').css('font-size', font_size_small);
    //         $('.autosize3').css('font-size', font_size_big);
    //         //$('.swiper-slide img').css('padding',padding);
    //     }
    //     e();
    //     $(window).on("orientationchange, resize",
    //             function() {
    //                 e();
    //             })

    // });